package net.oschina.bilbodai.common.beanutil.property.asm.lexer.code;

import java.util.List;

/**
 * @author daimao  Date: 16/4/22 Time: 下午2:19
 * @version $Id$
 */
public class CodeApplyResult {

    private final Class<?> nextTokenType;
    private final Class<?> stackType;
    private final List<Class<?>> nextTokenGenericTypes;

    public CodeApplyResult(Class<?> nextTokenType, List<Class<?>> nextTokenGenericTypes) {
        this.nextTokenType = nextTokenType;
        this.stackType = nextTokenType;
        this.nextTokenGenericTypes = nextTokenGenericTypes;
    }

    public CodeApplyResult(Class<?> nextTokenType, Class<?> stackType, List<Class<?>> nextTokenGenericTypes) {
        this.nextTokenType = nextTokenType;
        this.stackType = stackType;
        this.nextTokenGenericTypes = nextTokenGenericTypes;
    }

    //------
    public Class<?> getNextTokenType() {
        return nextTokenType;
    }

    public List<Class<?>> getNextTokenGenericTypes() {

        return nextTokenGenericTypes;
    }

    public Class<?> getStackType() {
        return stackType;
    }
}